package com.usian.feign;

import com.usian.pojo.Stock;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

@FeignClient(value = "stock-service")
@RequestMapping("/stock")
public interface StockFeign {

    @PostMapping("/DeductionStock")
    public String DeductionStock(@RequestBody Stock stock);

    @GetMapping("/findBySkuId")
    public Stock findBySkuId(@RequestParam Integer skuId);
}
